import request from '@/utils/request'

// 获取档案树
export function getTrees(query) {
  return request({
    url: '/archive/trees/gettrees',
    method: 'get',
    params: query
  })
}

// 获取外层列表
export function getList(query) {
  return request({
    url: '/archive/yqdaarticulated/list',
    method: 'get',
    params: query
  })
}

// 获取未挂接列表
export function NotarticulatedList(query) {
  return request({
    url: '/archive/yqdaarticulated/NotarticulatedList',
    method: 'get',
    params: query
  })
}

// 获取档号字段下拉框
export function getFileNumberField(query) {
  return request({
    url: '/archive/cateMdataList/getFileNumberField',
    method: 'get',
    params: query
  })
}

// 获取档号定义下拉框
export function getDefineList(query) {
  return request({
    url: '/archive/coderule/list',
    method: 'get',
    params: query
  })
}

// 查看日志数据列表
export function articulatedLog(query) {
  return request({
    url: '/archive/yqdaarticulated/articulatedLog',
    method: 'get',
    params: query
  })
}

// 上传挂接包
export function fileUpload(data){
  return request({
    url: '/archive/fileUpload',
    method: 'post',
    data: data
  })
}

// 点击保存进行挂接
export function articulated(data) {
  return request({
    url: '/archive/yqdaarticulated/articulated',
    method: 'post',
    data: data
  })
}
